<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/Validform/5.3.2/style.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/Project.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/jedate.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>合同详情</title>
    <style>
        .shun td:first-child{text-align: left;padding-left:15px;}
    </style>
</head>
<body data-id="165">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span>客户管理<span class="c-gray en">&gt;</span> 合同管理 <span class="c-gray en">&gt;</span> 合同详情<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <div id="tab_demo" class="HuiTab">
        <div class="tabBar clearfix ml-20">
            <span>合同信息</span>
           <!-- <span class="current">价格约束条款</span>-->
        </div>
        <form class="ml-20 mr-20" id="form-search" method="post">
            <div class="tabCon bk-gray bg-1" style="display: none;">
                <div class="lh-30 mb-10 pd-20">

                    <div class="va-m pl-10 lh-50 f-17 f-16">
                        <strong>基本信息</strong>
                        <!--<a class="f-r mr-20 c-color f-14" onclick="basic_aedit('客户基本信息','basic_edits.html','{{=it.operate_manager_id}}','{{=it.operate_manager_name}}','{{=it.purchase_goods_intro}}')">编辑</a>-->
                    </div>
                    <table class="table-hover table_li ml-10">
                        <thead class="text-l">
                        <tr >
                            <td>
                                <span>云采合同编号: <span class="text-overflow" style="width: 10px" id="contractNum"></span></span>
                            </td>
                            <td>
                                <span>集团合同编号: <span id="oldSysContractNum"></span></span>
                            </td>
                            <td>
                                <span>合同类型: <span id="contractType"></span></span>
                            </td>


                            <td>

                            </td>
                        </tr>

                        <tr >
                            <td>
                                <span>客户归属: <span id="customerBelongGroupName"></span></span>
                            </td>
                            <td>
                                <span>合同状态: <span class="text-overflow" style="width: 10px" id="oldContractState"></span></span>
                            </td>
                            <td>
                                <span>客户名称: <span id="customerName"></span></span>
                            </td>
                        </tr>

                        <tr >
                            <td>
                                <span>生效日期: <span id="conStartDate"></span></span>
                            </td>
                            <td>
                                <span>到期日期: <span id="conEndDate"></span></span>
                            </td>

                        </tr>

                        </thead>
                    </table>
                </div>
                    <div class="line mt-10"></div>
                <div class=" pd-5 bg-1 bk-gray mt-10">
                    <div class="va-m pl-10 lh-50 f-17 f-16">
                        <strong>签约信息</strong>
                        <!--<a class="f-r mr-20 c-color f-14" onclick="ood_edit('签约信息编辑','ood_edit.html','{{=it.price_system}}','{{=it.express_policy}}','{{=it.ftotalmount}}','{{=it.tick_quota}}','{{=it.checkout_cycle}}','{{=it.credit}}','{{=it.payment_date}}','{{=it.balance_way}}','{{=it.balance_day}}','{{=it.balance_remark}}','{{=it.settle_cycle_first}}','{{=it.settle_cycle_second}}','{{=it.settle_cycle_third}}','{{=it.purchase_goods_intro}}','{{=it.customer_type}}')">编辑</a>-->
                    </div>
                    <table class="table-hover table_li ml-10">
                        <thead class="text-l">
                        <tr >
                            <td class="col-5-1">
                                <span>合同额度: <span id="ftotalmount"></span></span>
                            </td>
                            <td class="col-5-1">
                                <span>信用额度: <span id="credit"></span></span>
                            </td>
                            <td class="col-5-1">
                                <span>执行赊欠额度: <span id="tickQuota"></span></span>
                            </td>
                        </tr>

                        <tr >
                            <td class="col-5-1">
                                <span>结算方式: <span id="balanceWay"></span></span>
                            </td>

                            <td class="col-5-1">
                                <span>结算依据: <span id="fcontractcontent"></span></span>
                            </td>
                        </tr>
                        <tr >
                            <td class="col-5-1">
                                <span>执行结算周期: <span id="settlecyclesecond"></span></span>
                            </td>


                        </tr>
                        <tr>
                            <td class="col-5-1">
                                <span>合同结账周期: <span id="checkoutCycle"></span></span>
                            </td>
                        </tr>
                        </thead>
                    </table>
                </div>
            </div>

            <div class="tabCon bk-gray bg-1" style="display: block;">
                <div class="lh-30 pd-20">
                    <table>
                        <tbody>
                            <tr>
                                <td class="col-3">
                                    <!--<div>
                                        <select class="select w-200 radius" style="height:26px;padding-left: 10px">
                                            <option value="">品类折扣率</option>
                                        </select>
                                    </div>-->
                                </td>
                            </tr>
                            <tr class="text-l">
                                <td class="col-5-1" >
                                    <div class="mt-10">
                                        <span class="size-M radius col-xs-8 f-l" style="width:27%">
                                       <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius ww dataval"
                                                   name="class1" placeholder="请选择一级分类" oninput="goodslistCategory(1)"
                                                   id="class1" datatype="*0-20" errormsg="格式错误，请重新输入" ignore="ignore">
                                            <ul class="relation radius guanlian ulbox" id="classUl1" style="width: 223px;">

                                            </ul>
                                        </div>
                                        <span class="Validform_checktip"></span>
                                    </span>
                                        <span class="f-l pl-10 pr-10 pt-5">~</span>
                                        <span class="size-M radius col-xs-8 f-l" style="width:27%">
                                        <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius ww dataval2"
                                                   name="class2" placeholder="请选择二级分类" id="class2" datatype="*0-20" oninput="goodslistCategory2()"
                                                   errormsg="格式错误，请重新输入" ignore="ignore">
                                            <ul class="relation radius guanlian ulbox2" id="classUl2" style="width: 223px;">
                                            </ul>
                                        </div>
                                        <span class="Validform_checktip"></span>
                                    </span>
                                        <span class="f-l pl-10 pr-10 pt-5">~</span>
                                        <span class="size-M radius col-xs-8" style="width:27%">
                                        <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius ww dataval3"
                                                   name="class3" placeholder="请选择三级分类" id="class3" datatype="*0-20" oninput="goodslistCategory3()"
                                                   errormsg="格式错误，请重新输入" ignore="ignore">
                                            <ul class="relation radius guanlian ulbox3" id="classUl3" style="width: 223px;">
                                            </ul>
                                        </div>
                                        <span class="Validform_checktip"></span>
                                    </span>
                                    </div>

                                </td>
                                <td class="col-5-1">
                                    <div class="mt-10">
                                        <label class="form-label f-l pt-5 text-r w-30">品牌：</label>
                                        <div class="formControls col-xs-8 col-sm-6">
                                            <input type="text" class="input-text radius ww" placeholder="请选择品牌" name="moli" onfocus="myfFunction()"  placeholder="" oninput="myfFunction()" id="username" autocomplete="off">
                                            <ul class="relation radius guanlian" id="tudfan">
                                                <li>无数据</li>
                                            </ul>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <div class="mt-10">
                                        <input class="btn  radius size-M powerButton 244" style="background-color: #0e90d2;color: #edfbfb " type="button" onclick="detailadd()" value="添加">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-5-4">

                                        <label class="ml-10">SPU码：</label>
                                        <input class="input-text radius w-100 ww" type="text" id="spuCode" placeholder="请输入SPU码" style="padding-left: 10px;">
                                        <!--<label class="ml-10">SKU码：</label>
                                        <input class="input-text radius w-100 ww" type="text" id="skuCode" placeholder="请输入SKU码" style="padding-left: 10px;">-->
                                        <label class="ml-10">Code码：</label>
                                        <input class="input-text radius w-100 ww" type="text" id="Code" placeholder="请输入Code码" style="padding-left: 10px;">
                                        <label class="ml-10">助记码：</label>
                                        <input class="input-text radius w-100 ww" type="text" id="helpCode" placeholder="请输入助记码" style="padding-left: 10px;">
                                        <label class="ml-10">商品名称：</label>
                                        <input class="input-text radius w-100 ww" type="text" id="spuName" placeholder="请输入商品名称" style="padding-left: 10px;">
                                        <label class="ml-10">商品别名：</label>
                                        <input class="input-text radius w-100 ww" type="text" id="skuName" placeholder="请输入商品别名关键字" style="padding-left: 10px;">

                                </td>
                                <td>
                                    <div >
                                        <a type="button" class="btn  size-M radius powerButton 244" style="background-color: #0e90d2;color: #edfbfb " onclick="ditailquery('品类折扣率详情','result_find.html')" value="">搜索</a>
                                        <input type="button" class="btn  size-M ml-10 radius powerButton 244" style="background-color: #0e90d2;color: #edfbfb " onclick="queryresults()" value="查询结果页">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <input class="btn radius btn-secondary-outline radius goods_edit dis_btn ml-10 powerButton 244" onclick="deleteyy()" type="button" value="批量删除">
                                        <input class="btn radius btn-secondary-outline radius goods_edit dis_btn ml-10 powerButton 244" onclick="batchupdata()" type="button" value="批量修改">
<!--                                        <input class="btn radius btn-secondary-outline radius goods_edit dis_btn ml-10 powerButton 244" onclick="importCategoryFn()" type="button" value="类目导入">-->
<!--                                        <input class="btn radius btn-secondary-outline radius goods_edit dis_btn ml-10 powerButton 244" onclick="failInfoDownloadFn()" type="button" value="失败信息下载">-->
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                    <thead>
                    <tr class="text-c">
                        <th style="width:180px;"><input type="checkbox" onclick="stoprop()" value="spu_all" id="spu_all">一级分类名称</th>
                        <th>二级分类名称</th>
                        <th>三级分类名称</th>
                        <th>品牌</th>
                        <th>SPU码</th>
                        <th>产品名称</th>
                        <th>Code码</th>
                        <th>规格名称</th>
                        <th>调价方式</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody class="shun">

                    </tbody>
                </table>
                <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                    <div class="f-r pageturning M-box3"></div>
                </div>

            </div>
        </form>
    </div>
    <form id="form-join-activity">
        <div id="batchModification" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog" style="top:50%;margin-top:-225px">
                <div class="modal-content radius" style="height:229px;width:313px;">

                    <div class="modal-header"  >
                        <h3 class="modal-title text-c"><b class="addressTitleActivity"style="margin-left: -214px;">批量修改</b></h3>
                        <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                    </div>
                    <div class="mt-20 ml-10" id="adjustmentMethod" style="display: none">
                    <span class="va-t"><span class="c-red pr-5 f-l">*</span>调价方式：</span>
                    <select onchange="adjustmentMethod()" class="select radius w-100 va-m" style="height: 26px;" id="modifyPriceWay">
                        <option  value="10">折扣率</option>
                        <option  value="20">金额上调</option>
                        <option  value="30">金额下调</option>
                    </select>
                </div>
                    <div class="mt-20 ml-10" id="adjustmentMethod2" style="display: none">
                        <span class="va-t"><span class="c-red pr-5 f-l">*</span>调价方式：</span>
                        <select onchange="changeActivityStatus()" class="select radius w-100 va-m" style="height: 26px;" id="modifyPriceWay2" disabled>
                            <option value="10">折扣率</option>
                        </select>
                    </div>
                    <div class="mt-20 ml-10" style="margin-left: 23px;" id="adjustmentMethod3" style="display: none">
                        <span class="va-t"><span class="c-red pr-5 f-l">*</span>百分比：</span>
                        <input class="input-text radius w-100" type="text" id="categoryDiscount" placeholder="">%
                    </div>
                    <div class="mt-20 ml-10" style="margin-left: 36px;" id="adjustmentMethod4" style="display: none">
                        <span class="va-t"><span class="c-red pr-5 f-l">*</span>金额：</span>
                        <input class="input-text radius w-100" type="text" id="categoryDiscount2" placeholder="">元
                    </div>

                    <div class="text-c" style="padding-top: 28px">
                        <a onclick="save_edit()" class="btn btn-secondary radius size-S">确定</a>
                        <a onclick="close_model()" class="btn radius size-S mr-10 ml-10">取消</a>

                    </div>
                </div>
            </div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script src="../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../lib/pagination/pagination.css">
<script src="../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../ht-js/power.js?rev=@@hash"></script>
<script src="../../ht-js/Customer/Customer.js?rev=@@hash"></script>
<script src="../../ht-js/contract/contr_detail.js?rev=@@hash"></script>

<script>
    $(function () {
        $("#form-search").Validform({
            tiptype: 2,
            callback: function (form) {
                reloadSpuTable();
                return false;
            }
        });
    });
    condata()
    function condata (){
        jQuery.Huitab =function(tabBar,tabCon,class_name,tabEvent,i){
            var $tab_menu=$(tabBar);
            // 初始化操作
            $tab_menu.removeClass(class_name);
            $(tabBar).eq(i).addClass(class_name);
            $(tabCon).hide();
            $(tabCon).eq(i).show();

            $tab_menu.bind(tabEvent,function(){
                $tab_menu.removeClass(class_name);
                $(this).addClass(class_name);
                var index=$tab_menu.index(this);
                $(tabCon).hide();
                $(tabCon).eq(index).show()}
            )}
    }
    //页面返回刷新局部数据
    function conter() {
        seahsdfs()
        $('.ww').val('')
        $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click","1")
    }
    $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click","0")

</script>
</body>
</html>